package com.wpam.scrabble.mobile.messages;

import java.io.Serializable;

import android.bluetooth.BluetoothDevice;

public class Message implements Serializable {

	public static final int CONNECT = 0;
	public static final int READY = 1;
	public static final int INFO = 2;
	public static final int START = 3;
	public static final int NEW_TURN = 4;
	public static final int MOVE = 5;
	public static final int NEW_LETTERS = 6;
	public static final int CHANGE_LETTERS = 7;
	public static final int GOODBYE = 8;
	public static final int PAUSE = 9;
	public static final int CONTINUE = 10;
	
	private static final long serialVersionUID = 1L;
	protected int type_;
	private BluetoothDevice device_;
	
	public Message(int type) {
		
		this.type_ = type;
		this.device_ = null;
	}
	
	public int getType() {
		return type_;
	}
	
	public void setSenderDevice(BluetoothDevice device) {
		this.device_ = device;
	}
	
	public BluetoothDevice getSenderDevice() {
		return device_;
	}
} 
